#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMouseEvent>
#include <QMenu>
class Welcome;
class Work;
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_toolButton_clicked();

    void on_toolButton_2_clicked();

    void on_act_insert_pic_triggered();

    void on_act_Export_pic_triggered();

private:
    Ui::MainWindow *ui;
    Welcome *welcome_widget;
    Work *work_widget;
    QMenu *_menu;
    QString _filename;
signals:
    void SignImagePath(QString path);
    void SignSaveImagePath(QString path);

    // QWidget interface
protected:
    void mousePressEvent(QMouseEvent *event) override;
};
#endif // MAINWINDOW_H
